package model

import "github.com/golang-jwt/jwt/v4"

type SysJwtClaims struct {
	EmpeeAcct string `json:"empee_acct"`
	StaffName string `json:"staff_name"`
	RefreshAt int64  `json:"refresh_at"`
	jwt.StandardClaims
}

type RequestLogin struct {
	EmpeeAcct string `json:"empee_acct" binding:"required"`
	Password  string `json:"password" binding:"required"`
	Captcha   string `json:"captcha" binding:"required"`
	CaptchaId string `json:"captcha_id" binding:"required"`
}

type ResponseLogin struct {
	Avatar    string `json:"avatar"`
	EmpeeAcct string `json:"empee_acct"`
	StaffName string `json:"staff_name"`
	StaffId   string `json:"staff_id"`
	Token     string `json:"token"`
}

type RequestChangePasswordByCertiNbrAndMobile struct {
	EmpeeAcct          string `json:"empee_acct" binding:"required"`
	CertiNbr           string `json:"certi_nbr" binding:"required"`
	Mobile             string `json:"mobile" binding:"required"`
	NewPassword        string `json:"new_password" binding:"required"`
	NewPasswordConfirm string `json:"new_password_confirm" binding:"required"`
	Captcha            string `json:"captcha" binding:"required"`
	CaptchaId          string `json:"captcha_id" binding:"required"`
}

type ResponseChangePasswordByCertiNbrAndMobile struct {
	EmpeeAcct string `json:"empee_acct" binding:"required"`
}
